Skip to content

Add Section 8 to the PER-CS 1.0 to 2.0 migration guide#142

Merged
Crell merged 1 commit into
php-fig:masterfrom
rodrigoprimo:add-section-8-to-migration-guide
Jun 22, 2026
Merged

Add Section 8 to the PER-CS 1.0 to 2.0 migration guide#142
Crell merged 1 commit into
php-fig:masterfrom
rodrigoprimo:add-section-8-to-migration-guide

Conversation

@rodrigoprimo

Copy link
Copy Markdown
Contributor

PER-CS 2.0 introduces a new rule in Section 8:

If the anonymous class has no arguments, the () after class MUST be omitted.

This rule was added by #37 and is not present in Section 8 in 1.0.

This PR adds a Section 8 entry to migration-2.0.md.

As with #139, the new Section 8 heading uses the unversioned php-fig.org URL to match the existing entries. See #138 for the related discussion about whether this URL should be versioned.

PER-CS 2.0 added a new normative rule to Section 8 requiring that
the `()` after `class` MUST be omitted when an anonymous class has
no arguments. The rule is not currently documented in the migration
guide. This commit adds the missing entry.
@rodrigoprimo rodrigoprimo force-pushed the add-section-8-to-migration-guide branch from 4a04709 to 9cbe1b1 Compare June 22, 2026 15:15
@rodrigoprimo

Copy link
Copy Markdown
Contributor Author

Rebased onto the latest master and force-pushed. This picks up #152, which (following the decision in #138) switched the migration guide links to point to the target version on GitHub instead of the website. I also updated the link this PR adds to follow the same convention.

@Crell Crell merged commit 5d05b11 into php-fig:master Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants